package com.study.thread;

public class SimpleSynchronized {
    private static final Object lock = new Object();
    public static  String test() {
        synchronized(lock){
            return "hello world";
        }
    }

    public static void main(String[] args) {
        System.out.printf(test());
    }
}
